<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title><?php echo ($title); ?></title>
    <link rel="stylesheet" href="/Public/web/css/pintuer.css">
    <link rel="stylesheet" href="/Public/web/css/admin.css">
    <script src="/Public/web/js/jquery.js"></script>
    <script src="/Public/web/js/pintuer.js"></script>
</head>


<body>
  <div class="panel admin-panel margin-top">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span> <?php echo L("bianji");?></strong></div>
    <div class="body-content">
      <form method="post" class="form-x" action="" enctype="multipart/form-data">
        <div class="form-group">
          <div class="label">
            <label><?php echo L("yonghuming");?>：</label>
          </div>
          <div class="field">
            <input type="text" class="input w50" name="nickname" value="<?php echo ($info['nickname']); ?>" data-validate="required:<?php echo L('qingshuru'); echo L('yonghuming');?>" />
            <div class="tips"></div>
          </div>
        </div>
        <!--<div class="form-group">-->
          <!--<div class="label">-->
            <!--<label><?php echo L("mima");?>：</label>-->
          <!--</div>-->
          <!--<div class="field">-->
            <!--<input type="text" class="input w50" name="password" placeholder="<?php echo ($info['password']); ?>" />-->
            <!--<div class="tips"></div>-->
          <!--</div>-->
        <!--</div>-->
        <div class="form-group">
          <div class="label">
          <label><?php echo L("yonghutouxiang");?>：</label>
          </div>
          <div class="field">
            <input type="file" class="button bg-blue" name="headimgurl" value="+ <?php echo L('liulanshangchuan');?>" onchange="preview(this)" style="float: left;">
            <div id="preview" name="img" style="float: left;width: 8%;box-sizing: border-box;" class="input" >
              <?php if(empty($info['headimgurl'])): ?><img src="/Public/images/zanwu.jpg" width="100%" />
                <?php else: ?>
                <img src="/<?php echo ($info['headimgurl']); ?>" width="100%" /><?php endif; ?>
            </div>
            <div class="tips"></div>
          </div>
        </div>
        <div class="form-group">
          <div class="label">
            <label><?php echo L("xingming");?>：</label>
          </div>
          <div class="field">
            <input type="text" class="input w50" name="full_name" value="<?php echo ($info['full_name']); ?>" />
            <div class="tips"></div>
          </div>
        </div>
        <!--<div class="form-group">-->
          <!--<div class="label">-->
            <!--<label><?php echo L("tuijianren");?>：</label>-->
          <!--</div>-->
          <!--<div class="field">-->
            <!--<span class="input w50" style="background: #ddd"><?php echo ((isset($info['tuijian']) && ($info['tuijian'] !== ""))?($info['tuijian']):"无"); ?></span>-->
          <!--</div>-->
        <!--</div>-->
        <div class="form-group">
          <div class="label">
            <label><?php echo L("lianxishouji");?>：</label>
          </div>
          <div class="field">
            <input type="text" class="input w50" name="tel" value="<?php echo ($info['tel']); ?>" />
            <div class="tips"></div>
          </div>
        </div>
        <!--<div class="form-group">-->
          <!--<div class="label">-->
            <!--<label><?php echo L("weixin");?>：</label>-->
          <!--</div>-->
          <!--<div class="field">-->
            <!--<input type="text" class="input w50" name="wechat" value="<?php echo ($info['wechat']); ?>" />-->
            <!--<div class="tips"></div>-->
          <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
          <!--<div class="label">-->
            <!--<label>QQ：</label>-->
          <!--</div>-->
          <!--<div class="field">-->
            <!--<input type="text" class="input w50" name="qq" value="<?php echo ($info['qq']); ?>" />-->
            <!--<div class="tips"></div>-->
          <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
          <!--<div class="label">-->
            <!--<label><?php echo L("weibo");?>：</label>-->
          <!--</div>-->
          <!--<div class="field">-->
            <!--<input type="text" class="input w50" name="micro_blog" value="<?php echo ($info['micro_blog']); ?>" />-->
            <!--<div class="tips"></div>-->
          <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
          <!--<div class="label">-->
            <!--<label><?php echo L("huiyuanjibie");?>：</label>-->
          <!--</div>-->
          <!--<div class="field">-->
            <!--<select name="power" class="input w50">-->
              <!--<option value="0" <?php if($info['power'] == 0): ?>selected="selected"<?php endif; ?>><?php echo L("putonghuiyuan");?></option>-->
              <!--<option value="0" <?php if($info['power'] == 1): ?>selected="selected"<?php endif; ?>><?php echo L("gaojihuiyuan");?></option>-->
            <!--</select>-->
            <!--<div class="tips"></div>-->
          <!--</div>-->
        <!--</div>-->
        <div class="form-group">
          <div class="label">
            <label></label>
          </div>
          <div class="field">
            <button class="button bg-main icon-check-square-o" type="submit"> <?php echo L("tijiao");?></button>
          </div>
        </div>
      </form>
    </div>
  </div>
  <script type="text/javascript">
    function preview(file){
      var prevDiv = document.getElementById('preview');
      if (file.files && file.files[0]){
        var reader = new FileReader();
        reader.onload = function(evt){
          prevDiv.innerHTML = '<img src="' + evt.target.result + '" width="100%" />';
        }
        reader.readAsDataURL(file.files[0]);
      }
      else{
        prevDiv.innerHTML = '<div class="img" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>';
      }
    }
  </script>
</body>

</html>